// thread_joignabilite.h	0.1	<2012-03-06>	<QUEDREUX steve>
#ifndef THREAD_JOIGNABILITE_H
#define THREAD_JOIGNABILITE_H

#include <QThread>
#include <QMainWindow>
#include "f_bdd.h"
#include <QVector>

typedef struct{
    QString sDate;
    QString sHeure;
    QString AdresseIP;
}InfoMaterielInjoignable;

class Thread_Joignabilite : public QThread
{
    Q_OBJECT
public:
    // METHODEs -----------------------------------------------------------------
    // CONSTRUCTEURs et DESTRUCTE
    explicit Thread_Joignabilite(QObject *parent = 0);
    virtual ~Thread_Joignabilite();

private:
    // ATTRIBUTs ----------------------------------------------------------------
    QVector<InfoJoignabilite>ListeMaterielsASurveiller;
    // METHODEs -----------------------------------------------------------------
    void TesterJoignabilite() ;
    ulong ip_source ;
protected:
    // METHODEs -----------------------------------------------------------------
    virtual void run();

signals:
    // METHODEs -----------------------------------------------------------------
    void Signal_EnvoyerTextePingReussi(QString) ;
    void Signal_EnvoyerTexteDelaiDepasse(QString) ;
    void Signal_IncrementerBarreDeProgression(int) ;  
    void Signal_EnregistrerEvenementTableJoignabilite(QVector<InfoMaterielInjoignable>) ;

private slots:
    void Slot_RecupererIpSource(QString) ;

};

//------------------------------------------------------------------------------
#endif // THREAD_JOIGNABILITE_H
//------------------------------------------------------------------------------
